using System;
using System.ComponentModel.DataAnnotations;

namespace Healinker.Entities
{
    public partial class LinkArticle
    {
        [Key]
        public int Id { get; set; }

        [ForeignKey("Disease")]
        public int DiseaseId { get; set; }

        [Required, StringLength(100)]
        public string Author { get; set; }

        [Required, StringLength(50)]
        public string FromSite { get; set; }

        [Required]
        public DateTime PublishDate { get; set; }
        
        [Required, StringLength(255)]
        public string Keywords { get; set; }

        [Required]
        public string Content { get; set; }

        [Required, StringLength(255)]
        public string Title { get; set; }
    
        public virtual Disease Disease { get; set; }
    }
}
